<form method="post" action="<?php echo U('del');?>" id="myform">
<table class="table table-border table-bg table-hover yzm-table-sort">
<thead>
  <tr class="text-c">
	<th style="padding:7px;">品牌</th>
	<th width="80" style="padding:7px;">总采购中</th>
	<th width="80" style="padding:7px;">采购中</th>
	<th width="80" style="padding:7px;">待采购</th>
	<th width="80" style="padding:7px;">总共缺货</th>
  </tr>
</thead>
<tbody>
	<?php 
	foreach($data as $val){
	?>
	  <tr class="text-c">
		<td class="text-l" style="padding:7px;"><?php echo $val['brand']?></td>
		<td style="padding:7px;"><?php echo $val['total_purchase_qty'];?></td>
		<td style="padding:7px;"><?php echo $val['purchase_qty'];?></td>
		<td style="padding:7px;"><?php echo $val['wait_purchase_qty']*-1;?></td>
		<td style="padding:7px;"><?php echo $val['total_qty']?$val['total_qty']*-1:0?></td>
	  </tr>		
	<?php 
	}
	?>
</tbody>
</table>
<?php if(!$data){ ?><div class="yzm_no_data"><i class="Hui-iconfont">&#xe6e0;</i> 暂无数据</div><?php } ?>
</form>
<script>
/*
$('.i_id').on('click',function(){
	let i_id = $(this).attr('i_id');
	let url = '<?php echo U('jst_manage/trend',['type'=>'i_id'])?>'+'?kuan='+i_id;
	let width = '800px';
	if(screen.width<800){
		width = '100%';
	}
	layer.open({  
		type: 2,  
		title: i_id+'销量统计',  
		shadeClose: true,  
		shade: 0.2,  
		area: [width, '600px'],  
		content: url,
		success: function(layero, index){
			
		}
	})
	return false;
})*/
</script>
  